#include <iostream>
using namespace std;


int main()
{
    int *pi = new int(10);
    int *pia = new int[10];
    while (*pi < 10){
        cout<< pi<< endl;
        pia [*pi] = *pi;
        *pi = *pi + 1;
    }
    delete pi;
    delete []pia;
}
